package com.action.library;

import com.bean.library.DbPaper;
import com.dao.DaoManager;
import com.dao.library.PaperDao;

public class TSetQuesAction {
	public boolean setQuestion(DbPaper dbPaper){
		DaoManager dm = DaoManager.getInstance();
		PaperDao paperDao = dm.getDao(PaperDao.class);
		boolean insertPaperRes = false;
		try
		{
			dm.begin();
			insertPaperRes = paperDao.insertPaper(dbPaper);
			dm.commit();
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		finally 
		{
			dm.end();
		}
		return insertPaperRes;
	}
}
